export default function _request(params) {
  return new Promise((resolve,reject)=>{
    wx.request({
      url: params.url,
      data: params.data?params.data:{},
      method:params.method?params.method:'get',
      timeout: 3000,
      success: resolve,
      fail: reject,
      // complete: (res) => {},
    })
  })
}